#ifndef HEARTBEATPANEL_H
#define HEARTBEATPANEL_H

#include <QGroupBox>
#include <QWidget>

class QLineEdit;
class QTextEdit;
class HttpClient;

class HeartbeatPanel : public QGroupBox
{
    Q_OBJECT
public:
    HeartbeatPanel();

private slots:
    void onSendRequest();
    void onReciveResponse(const QByteArray& json);

private:
    void initComponents();
    QWidget* initRequestPanel();
    QWidget* initResponsePanel();
    QHash<QString,QLineEdit*> requestVariableHash;
    QHash<QString,QLineEdit*> responseVariableHash;
    QHash<QString,QTextEdit*> jsonHash;
    HttpClient* client;

};

#endif // HEARTBEATPANEL_H
